package com.catering.service.serviceImpl;

import com.catering.domain.Customer;
import com.catering.mapper.CustomerMapper;
import com.catering.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CustomerServiceImpl implements CustomerService {

    @Autowired
    private CustomerMapper customerMapper;

    @Override
    public int insertCustomerMessage(Customer customer) {
        return customerMapper.insertSelective(customer);
    }

    @Override
    public Customer selectLastMessage() {
        return customerMapper.selectLastMessage();
    }
}
